package com.shenbao.service.impl;

import com.shenbao.beans.MoneySource;
import com.shenbao.dao.MoneySourceMapper;
import com.shenbao.service.IMoneySourceService;

import java.util.List;
import java.util.Map;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;

@Service("MoneySourceServiceImpl")
public class MoneySourceServiceImpl implements IMoneySourceService {
    @Resource
    public MoneySourceMapper moneySourceMapper;

    public int deleteByPrimaryKey(Integer id) {
        return moneySourceMapper.deleteByPrimaryKey(id);
    }

    public int insert(MoneySource record) {
        return moneySourceMapper.insert(record);
    }

    public int insertSelective(MoneySource record) {
        return moneySourceMapper.insertSelective(record);
    }

    public MoneySource selectByPrimaryKey(Integer id) {
        return moneySourceMapper.selectByPrimaryKey(id);
    }

    public int updateByPrimaryKeySelective(MoneySource record) {
        return moneySourceMapper.updateByPrimaryKeySelective(record);
    }

    public int updateByPrimaryKey(MoneySource record) {
        return moneySourceMapper.updateByPrimaryKey(record);
    }

    public int getTotalCount() {
        return moneySourceMapper.getTotalCount();
    }

    public int getCountByParameterName(String parameterName) {
        return moneySourceMapper.getCountByParameterName(parameterName);
    }

    public List<MoneySource> selectByPaingAndCondition(Map<String, String> map) {
        return moneySourceMapper.selectByPaingAndCondition(map);
    }

	@Override
	public List<MoneySource> getallmoneysource() {
		return moneySourceMapper.getallmoneysource();
	}
}